Ext.define('Seq.pivot.Aggregators', {
    override: 'Ext.pivot.Aggregators',

    sum: function (records, measure, matrix, rowGroupKey, colGroupKey) {
        let me = this, v = this.callParent(arguments);
        return me.valueOfAggr(v);
    },

    avg: function (records, measure, matrix, rowGroupKey, colGroupKey) {
        let me = this, v = this.callParent(arguments);
        return me.valueOfAggr(v);
    },

    valueOfAggr: function (v) {
        if (null == v) {
            return '---';
        } else if ('---' === v) {
            return 0;
        }
        return v;
    }
});